package com.lzy.cloud.mq.remote;

import com.lzy.cloud.mq.remote.dtos.PayBackDTO;
import com.lzy.framework.core.output.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "lzy-cloud-payment")
public interface PaymentApi {

    /**
     * 支付回调之后的业务处理（支付成功/支付失败）
     * @return
     * @date
     */
    @RequestMapping(value = "/pay/trade/notify",method = RequestMethod.POST)
    Result notify(PayBackDTO payBackDTO);
}
